<h2>My superusers</h2>
<table><thead>
<tr><th>Superuser</th><th>Can Edit Questions</th><th>Can Invite Respondents</th><th>Can View Report</th><th>Can End Survey</th></tr></thead>
<?php foreach($superuser->result() AS $list){ ?>
		<?php 
			$myList = $list->email;
			$superuser = $list->superuser;			
		?>
		<tr><td><?php echo anchor('user/view_survey/'.$superuser,$myList);?></td>
		<td><?php if($list->edit_questions){
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 1, 'checked' => 1, 'disabled' => ''));
			} else {
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 0, 'checked' => 0, 'disabled' => ''));
			}
		;?></td>
		<td><?php if($list->invite_respondents){
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 1, 'checked' => 1, 'disabled' => ''));
			} else {
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 0, 'checked' => 0, 'disabled' => ''));
			}
		;?></td>
		<td><?php if($list->view_reports){
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 1, 'checked' => 1, 'disabled' => ''));
			} else {
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 0, 'checked' => 0, 'disabled' => ''));
			}
		;?></td>
		<td><?php if($list->end_survey){
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 1, 'checked' => 1, 'disabled' => ''));
			} else {
				echo form_checkbox(array('name' => 'edit_questions', 'value'=> 0, 'checked' => 0, 'disabled' => ''));
			}
		;?></td></tr>
<?php	} ?>
</table>




